Page({
  refuseAuth: function () {
    wx.switchTab({
      url: '../home/home'
    })
  },
  bindGetUserInfo: function (e) {
    if (e.detail.userInfo) {
      wx.setStorageSync('userInfo', e.detail.userInfo);
      wx.showToast({
        title: '授权成功...',
        icon: 'none',
        duration: 1500
      })
      wx.navigateBack({
        delta: 1
      })
    }
  },
})